package com.rdtravel.services;

import com.rdtravel.entities.Destination;

import java.util.List;

/**
 * Services for {@link com.rdtravel.entities.Destination} Entities
 * 
 * @author Hans
 * 
 */

public interface DestinationsService {
	/**
	 * 
	 * @param term
	 *            the term with which te name should start of the
	 *            {@link com.rdtravel.entities.Destination}s to find
	 * @return the {@link com.rdtravel.entities.Destination}s with a name which
	 *         starts with this term<br/>
	 */
	List<String> findNamesStartingWith(String term);

	/**
	 * 
	 * @param name
	 *            the name of the {@link com.rdtravel.entities.Destination} to
	 *            find
	 * @return the {@link com.rdtravel.entities.Destination} with this name<br/>
	 *         <code>null</code> if no {@link com.rdtravel.entities.Destination}
	 *         with this name is found
	 */
	Destination findByName(String name);
}